package com.cheyun.netsalev3.bean.records

import androidx.databinding.BaseObservable
import androidx.databinding.Bindable
import com.cheyun.netsalev3.BR
import java.io.Serializable

data class PurchaseInfo(
        val addname: String, //添加人名称
        var paymentway:Int,
        val paymentwayname: String, //付款方式
        val isreplacement: Int, //是否置换
        val issamebrand: Int, //是否本品置换
        val actualprice: String, //实际计算后的价格
        val productname: String, //产品名称
        val unitprice: String, //裸车优惠
        val usedcarprice: String, //二手车收购价
        val replacementprice: String, //置换补贴
        val purchasetax: String, // 购置税
        val insurance: String, // 交强险
        val commercial: String,//商业险
        val premiumprice: String,//精品附件
        val licensefee: String,//上牌费用
        val promotions: String,//促销活动
        val otherfee: String,//其他费用
        val loaninterest: String,//贷款金额
        val loadname: String,//金融产品名称
        val firstpayment: String,//首付金额
        val loannumber: String,//贷款期数
        val monthpay: String,//月供
        val endpayment: String,//尾款金额
        val factorypayment: String,//厂家贴息
        var dateline:String,
        var vipcustomer:String //大客户优惠
) : Serializable, BaseObservable() {
    @get:Bindable
    var show: Boolean = false
        set(value) {
            field = value
            notifyPropertyChanged(BR.show)

        }
}